def money(q):
    if q>=1000:
        return 300
    elif q>=500:
        return 150
    elif q>=200:
        return 50
    else:
        return 0
q=int(input("请输入会员充值金额："))
print("赠送金额：",money(q))